package com.heima.wemedia.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dto.WmLoginDto;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



/**
 * 自媒体用户表(WmUser)表控制层
 *
 * @author makejava
 * @since 2022-04-09 20:17:18
 */
@RestController
@RequestMapping("login")
public class WmUserController {
    @Autowired
    private WmUserService wmUserService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody WmLoginDto wm){
        return wmUserService.login(wm);
    }


}

